<?php
	include("load-settings.php");

	$result = mysql_query("SELECT * FROM user WHERE type = 0");

	while($row = mysql_fetch_array($result))
	{
		$new_crypt = crypt($row['password']);
		mysql_query("UPDATE user SET password = '$new_crypt' WHERE id = ".$row['id']);
	}
?>